package com.cisdi.info.mh.service.User;

import com.cisdi.info.simple.dto.base.PageDTO;
import com.cisdi.info.simple.dto.base.PageResultDTO;
import com.cisdi.info.mh.entity.User.User;

import java.util.List;

public interface UserService {

    public PageResultDTO findUsers(PageDTO pageDTO);

    public List<User> findAllUsers();

    public List<User> findUsersWithIdNameByName(String userName);

    public List<User> findAllUsersWithIdName();

    public User findUsersWithIdNameById(Long userId);

    public User findUser(Long userId);

    //所有外键的Name都以加载
    public User findUserWithForeignName(Long userId);

    public User saveUser(User user);

    public User updateUser(User user);

    public void deleteUser(Long userId);
}
